package view;

import java.awt.Color;

import javax.swing.*;

/**
 * The class legendView shows a legend of the simulator
 * @author Arjan Frans, Alwin Rombout, Jelte Verbree, Brendan Kanters
 * @version 1.0
 */
public class LegendView extends JPanel 
{
	private JLabel foxLegend;
	private JLabel rabbitLegend;
	private JLabel wolfLegend;
	private JLabel hunterLegend;
	private JLabel carLegend;
	private JLabel roadLegend;
	private JLabel grassLegend;
	private JLabel groundLegend;
	
	/**
	 * make a new legendView
	 */
	public LegendView()
	{
		this.rabbitLegend = new JLabel("Rabbits");
		this.rabbitLegend.setBackground(Color.yellow);
		this.rabbitLegend.setOpaque(true);
		this.rabbitLegend.setBounds(0, 10, 10, 5);
		add(rabbitLegend);
		
		this.rabbitLegend = new JLabel("Virus Susceptible Rabbits");
		this.rabbitLegend.setBackground(Color.orange);
		this.rabbitLegend.setOpaque(true);
		this.rabbitLegend.setBounds(0, 10, 10, 5);
		add(rabbitLegend);
		
		this.rabbitLegend = new JLabel("Diseased Rabbits");
		this.rabbitLegend.setBackground(Color.red);
		this.rabbitLegend.setOpaque(true);
		this.rabbitLegend.setBounds(0, 10, 10, 5);
		add(rabbitLegend);
			
		this.foxLegend = new JLabel("Foxes");
		this.foxLegend.setBackground(Color.blue);
		this.foxLegend.setForeground(Color.white);
		this.foxLegend.setOpaque(true);
		this.foxLegend.setBounds(0, 0, 10, 5);
		add(foxLegend);
		
		this.foxLegend = new JLabel("Diseased Foxes");
		this.foxLegend.setBackground(new Color(128,0,128));
		this.foxLegend.setForeground(Color.white);
		this.foxLegend.setOpaque(true);
		this.foxLegend.setBounds(0, 0, 10, 5);
		add(foxLegend);
		
		this.wolfLegend = new JLabel("Wolfs");
		this.wolfLegend.setBackground(Color.white);
		this.wolfLegend.setOpaque(true);
		this.wolfLegend.setBounds(0, 20, 10, 5);
		add(wolfLegend);
		
		this.hunterLegend = new JLabel("Hunter");
		this.hunterLegend.setBackground(Color.black);
		this.hunterLegend.setForeground(Color.white);
		this.hunterLegend.setOpaque(true);
		this.hunterLegend.setBounds(0, 30, 10, 5);
		add(hunterLegend);
		
		this.carLegend = new JLabel("Car");
		this.carLegend.setBackground(Color.cyan);
		this.carLegend.setOpaque(true);
		this.carLegend.setBounds(0, 40, 10, 5);
		add(carLegend);
		
		this.roadLegend = new JLabel("Road");
		this.roadLegend.setBackground(Color.gray);
		this.roadLegend.setOpaque(true);
		this.roadLegend.setBounds(0, 50, 10, 5);
		add(roadLegend);
		
		this.grassLegend = new JLabel("Grass");
		this.grassLegend.setBackground(Color.green);
		this.grassLegend.setOpaque(true);
		this.grassLegend.setBounds(0, 60, 10, 5);
		add(grassLegend);
		
		this.groundLegend = new JLabel("Ground");
		this.groundLegend.setBackground(new Color(210, 105, 30 ));
		this.groundLegend.setOpaque(true);
		this.groundLegend.setBounds(0, 70, 10, 5);
		add(groundLegend);
	}
}
